#include "labelcustom.h"

LabelCustom::LabelCustom(QWidget *parent) :
    QLabel(parent)
{
}

void LabelCustom::mousePressEvent(QMouseEvent *ev) {
    emit onMouseEvent(EVENT_TYPE_PRESS, ev);
}

void LabelCustom::mouseMoveEvent(QMouseEvent *ev) {
    emit onMouseEvent(EVENT_TYPE_MOVE, ev);
}

void LabelCustom::mouseReleaseEvent(QMouseEvent *ev) {
    emit onMouseEvent(EVENT_TYPE_RELEASE, ev);
}
